package com.zw.a.basic.a05.demo07_student;

//案例: 学生类的测试类
public class StudentTest {
    public static void main(String[] args) {
        //1. 创建学生对象.
        Student s = new Student();
        //2. 设置属性.
        s.setName("刘亦菲");
        s.setAge(33);
        //3. 打印属性.
        System.out.println(s.getName());
        System.out.println(s.getAge());

        //4. 调用方法.
        s.study();
        s.sleep();
    }
}
